package com.example.june.zhanghaoguanli;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;

import com.longfly_example.e_scale.R;

import java.util.ArrayList;
import java.util.List;

public class Activity_zhgl extends AppCompatActivity {

    ListView myListView ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhgl);
        List<LianxirenBean> itemBeanList = new ArrayList<LianxirenBean>();

        itemBeanList.add(new LianxirenBean("001","123456","2018.12.21","01", R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean("002","123456","2018.12.21","03",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean("003","123456","2018.12.19","02",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean("004","123456","2018.12.19","05",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean("005","123456","2018.12.19","07",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean("006","123456","2018.12.19","09",R.drawable.editor,R.drawable.delete));
        itemBeanList.add(new LianxirenBean("007","123456","2018.12.19","08",R.drawable.editor,R.drawable.delete));

        myListView =(ListView)findViewById(R.id.lv_zhgl);
        //设置ListView的数据适配器
        myListView.setAdapter(new Myadapter_zhgl(this,itemBeanList));
    }
}
